﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgencyList.aspx.cs" Inherits="Myproject.BSM.PcWeb.PcChannel.Agency.AgencyList" %>


<div class="bjui-pageHeader">
<form id="pagerForm" data-toggle="ajaxsearch" action="/bsm/pcweb/PcChannel/Agency/AgencyList.aspx" method="post">
    <input type="hidden" name="pageSize" value="<%= PageSize %>">
    <input type="hidden" name="pageCurrent" value="<%= PageCurrent %>">
    <input type="hidden" name="orderField" value="<%= OrderField %>">
    <input type="hidden" name="orderDirection" value="<%= OrderDirection %>">
    <div class="bjui-searchBar">
        <ul class="breadcrumb">
            <li><a><i class="fa fa-university"></i> 后台管理中心</a></li>
            <li><a><i class="fa fa-desktop"></i> 电脑端管理</a></li>
            <li class="active"><a><i class="fa fa-list"></i> 图文管理</a></li>
        </ul>
    </div>
    <div class="bjui-searchBar">
        <input id="pc_Channel_AgencyList_GoodsID" runat="server" name="pc_Channel_AgencyList_GoodsID" type="hidden" value="" />
        <label>产品：</label><input runat="server" readonly type="text" name="pc_Channel_AgencyList_GoodsName" id="pc_Channel_AgencyList_GoodsName" class="form-control" size="15"  data-title="选择产品" data-toggle="lookup" data-url="/bsm/pcweb/PcChannel/Agency/selectGoods2.aspx" />
        <label>代理类别：</label><input runat="server" type="text" name="pc_Channel_AgencyList_class" id="pc_Channel_AgencyList_class" class="form-control" size="10" placeholder="类别关键字" />
        <label>微信号：</label><input runat="server" type="text" name="pc_Channel_AgencyList_wechar" id="pc_Channel_AgencyList_wechar" class="form-control" size="10" placeholder="微信关键字" />
        <label>手机号：</label><input runat="server" type="text" name="pc_Channel_AgencyList_phone" id="pc_Channel_AgencyList_phone" class="form-control" size="10" placeholder="手机关键字" />
        <button type="submit" class="btn-green" id="pc_channel_newslist_submit" data-icon="search">查询</button>&nbsp;
        <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">刷新</a>
        <a class="btn btn-green" href="/bsm/pcweb/PcChannel/Agency/AgencyEdit.aspx" data-toggle="dialog" data-width="500" data-height="300" data-id="addAgency" data-icon="plus">添加代理</a>
        
    </div>
</form>
</div>
<div class="bjui-pageContent">
     <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <%--<caption>...</caption>--%>
        <thead>
            <tr>
                <th width="28" style="text-align: center;">
                </th>
                <th style="text-align: center;" data-order-field="GoodsName">产品</th>
                <th style="text-align: center;" data-order-field="AgencyClassName">代理类别</th>
                <th style="text-align: center;" data-order-field="AgencyName">代理名称</th>
                <th style="text-align: center;" data-order-field="Wechar">微信号</th>
                <th style="text-align: center;" data-order-field="Phone">手机号</th>
                <th style="text-align: center;" data-order-field="ShowTime">添加日期</th>
                <th style="text-align: center;" data-order-field="Show">状态</th>
                <th style="text-align: center;">操作</th>
            </tr>
        </thead>
        <tbody>
            <%if (MessageTable != null && MessageTable.Rows.Count > 0)
                  {
                      int i = Int32.Parse(PageSize) * (Int32.Parse(PageCurrent) - 1);
                      foreach (System.Data.DataRow row in MessageTable.Rows)
                      {
                          %>
            <tr>
                <td><%=i+1 %></td>
                <td style="text-align: center;">
                    <%= row["GoodsName"] %>
                </td>
                <td style="text-align: center;">
                    <%= row["AgencyClassName"] %>
                </td>
                <td style="text-align: center;">
                    <%= row["AgencyName"] %>
                </td>
                <td style="text-align: center;">
                    <%= row["Wechar"] %>
                </td>
                <td style="text-align: center;">
                    <%= row["Phone"] %>
                </td>
                <td style="text-align: center;">
                    <%= row["addTime"] %>
                </td>
                <td style="text-align: center;">
                     <% if (bool.Parse(row["show"].ToString()))
                       { %>
                    <a href="/bsm/ashx/PcChannel/AgencyAjax.ashx?dos=show&id=<%= row["AgencyId"] %>&show=false" class="btn btn-green" data-toggle="doajax" data-icon="eye">正常</a>
                    <%}
                       else
                       {
                    %>
                    <a href="/bsm/ashx/PcChannel/AgencyAjax.ashx?dos=show&id=<%= row["AgencyId"] %>&show=true" data-toggle="doajax" class="btn btn-red" data-icon="eye-slash">已冻结</a>
                    <%
                       } %>
                </td>
                <td style="text-align: center;">
                    <a class="btn btn-green" href="/bsm/pcweb/PcChannel/Agency/AgencyEdit.aspx?id=<%= row["AgencyId"] %>"  data-toggle="dialog" data-width="500" data-height="300" data-id="addAgency" data-title="代理修改">修改</a>
                    <a href="/bsm/ashx/PcChannel/AgencyAjax.ashx?dos=delete&id=<%= row["AgencyId"] %>" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删除</a>

                </td>
            </tr>
            <%
                i++;
                      }
                  }%>
            
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
        </div>
        <span>&nbsp;条，共 <%= AllRecords %> 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="<%= AllRecords %>" data-page-size="20" data-page-current="1">
    </div>
</div>

